// import jquery from 'assets/js/jquery-3.2.1.min.js'

function postdata(url, paprem) {
	$.ajax({
		type: 'POST',
		dataType: 'json',
		url: 'http://localhost:8080' + url,
		contentType: "application/json",
		data: JSON.stringify(paprem),
		success: function(d) {
			console.log(d)
			return d
			// if (d.code == '200') {
			// 	return true
			// } else {
			// 	return false
			// }
		}
	})
}
